﻿namespace AutoMail.Tools.EmailTools
{
    public enum EmailSubject
    {
        Birthday,
        Anniversary,
        Festival
    }

    public static class EmailSubjectExtensions
    {
        public static string GetString(this EmailSubject me, int anniversaryValue = 0, string staffName = "")
        {
            switch (me)
            {
                case EmailSubject.Birthday:
                    return string.Format("Dear {0}, Happy birthday!", staffName);
                case EmailSubject.Anniversary:
                    return string.Format("Happy {0}th Anniversary ! 入职{0}周年快乐!", anniversaryValue);
                case EmailSubject.Festival:
                    return "MEDIUM LEVEL ERROR";
                default:
                    return "NO VALUE GIVEN";
            }
        }
    }
}
